<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>显示所有类别</title>
<link
	href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css"
	rel="stylesheet">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script
	src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>
 <div class="container">
 <h2></h2> 实物类别列表</h2>
	 <table class="table table-bordered text-center">
	 <tr class="bg-primary">
		 <td>编号</td>
		 <td>类别名称</td>
		 <td>备注</td>
		 <td>删除</td>
		 <td>修改</td>
		 
		 
	 </tr>
	 <c:forEach items="${clist}" var="ctg">
	 <tr>
		 <td>${ctg.id}</td>
		 <td> ${ctg.name}</td>
		 <td> ${ctg.remark}</td>
		 <td> <a class="btn btn-danger" href="DeleteCategoryServlet?id=${ctg.id}">删除</a></td>
		 <td> <a class="btn btn-danger" href="FindByIdServlet?id=${ctg.id}">修改</a></td>
		 
	 </tr>
	 </c:forEach>
	 </table>
 </div>
</body>
</html>